<?
class ItemCategoryBO extends BusinessObject{
  /* private function using in constructors*/
  function setAttributes(){
        $this->fields   = array(
    			"id"		  =>	"item_category_id",
    			"name"		  =>	"item_category_name",
    			"notshowonfront"  =>	"item_category_notshowonfront",
    			"position"	  =>    "item_category_position"
    		);
		$ici = new ItemCategoryItemBO ();
		$this->relations = array (
			"{$ici->tableName}"	=>	"{$ici->tableName}.{$ici->fields["catID"]} = {$this->tableName}.{$this->fields["id"]}",
		);
    BusinessObject::setAttributes();
  }
  /* constuctor */
  function ItemCategoryBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("items_category");
    $this->setAttributes();
  }
}
?>
